package com.shwread.httpsdk.http.callback;

import base.tina.core.task.infc.ITaskProgress.TaskProgressType;


/**
 * @Title: IoTaskProgress.java
 * @Package com.surfingread.httpsdk.http.callback
 * @Description: TODO(添加描述)
 * @author 刘章
 * @date 2014年2月18日 下午8:37:27
 */
public interface IoTaskProgress
{
	public void createProgress(HttpType httpType, TaskProgressType type, long max);
	
	public void updateProgress(HttpType httpType, TaskProgressType type, long increase, long max);
	
	public void finishProgress(HttpType httpType, TaskProgressType type);
	
	public enum HttpType {
		Upload("upload"), Download("download");
		private String value;
		
		HttpType(String value) {
			this.value = value;
		}
		
		public String getValue() {
			
			return value;
		}
		
	};
}
